﻿using FairyGUI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

public abstract class BasePage
{
	protected readonly GComponent view;

	public BasePage(GComponent vie)
    {
		this.view = vie;
	}

	public abstract void Show();

	public abstract void Close();

	public virtual void Dispose()
    {
		if (view.visible)
        {
			Close();
		}
	}
}
